package com.crx.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author 谢杭延
 * @Date 2024-10-28 19:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("logApi")
@ApiModel(value="LogApi对象", description="接口日志表")
@Builder
public class LogApi {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id")
    private String id;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "用户ip")
    private String ip;
    @ApiModelProperty(value = "请求地址")
    private String requestPath;
    @ApiModelProperty(value = "业务模块")
    private String module;
    @ApiModelProperty(value = "请求类型")
    private String requestType;
    @ApiModelProperty(value = "操作时间")
    private LocalDateTime operationTime;
    @ApiModelProperty(value = "方法名称")
    private String methodName;
    @ApiModelProperty(value = "请求参数")
    private String params;
    @ApiModelProperty(value = "返回结果")
    private String result;

}
